import res from "@/http/https"

//节点的新增方法
export const AddFromNode =async (data:any)=>{
    return res({
        url:"ProcessEgineAPI/FormNode/AddFromNode",
        method:"post",
        data:data
    })
}

//节点的数据列表方法
export const GetFromNode =async (data:any)=>{
    return res({
        url:"ProcessEgineAPI/FormNode/GetFromNode",
        method:"get",
        params:data
    })
}

//节点的删除方法
export const DeleteFromNode =async (data:any)=>{
    return res({
        url:"ProcessEgineAPI/FormNode/DeleteFromNode",
        method:"delete",
        data:{
            NodeId:data
        }
    })
}

//节点的修改方法
export const UpdateFromNode =async (data:any)=>{
    return res({
        url:"ProcessEgineAPI/FormNode/UpdateFromNode",
        method:"put",
        data:data
    })
}

//节点的保存方法
export const SaveFormNodeDetails = async (data: any) => {
    return res({
        url: "ProcessEgineAPI/FormNode/SaveFormNodeDetails",
        method: "post",
        data: data
    })
}